<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="ThemeBucket">
    <link rel="shortcut icon" href="#" type="image/png">

    <title>测站基础信息管理</title>

    <!--dynamic table-->
    <link th:href="@{/js/advanced-datatable/css/demo_page.css}" rel="stylesheet"/>
    <link th:href="@{/js/advanced-datatable/css/demo_table.css}" rel="stylesheet"/>
    <link rel="stylesheet" th:href="@{/js/data-tables/DT_bootstrap.css}"/>

    <div th:include="common :: commonheader"></div>
    <script th:src="@{/js/confirmDelete.js}"></script>

    <script type="text/javascript">
        $(function () {
            $(".btn-delete").click(confirmDelete);
        });
    </script>
</head>

<body class="sticky-header">

<section>

    <div th:replace="common :: #leftmenu"></div>
    <!-- main content start-->
    <div class="main-content">

        <div th:replace="common :: headermenu"></div>

        <!-- page heading start-->
        <div class="page-heading">
            <h3>
                测站基础信息管理
            </h3>

        </div>
        <!-- page heading end-->

        <!--body wrapper start-->
        <div class="wrapper">
            <div class="row">
                <div class="col-sm-12">
                    <section class="panel">
                        <header class="panel-heading">
                            <form method="get" th:action="@{/czgl/searchWith}">
                                <label>
                                    测站基础信息&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;
                                </label>
                                <label>
                                    测站编码：<input type="text" name="staCode">
                                </label>&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;
                                <label>
                                    测站名称：<input type="text" name="staName">
                                </label>&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;

                                <button class="btn btn-lg btn-login btn-sm" type="submit">
                                    <i class="fa fa-search"></i>
                                </button>
                                <span class="tools pull-right">
                            <a th:href="@{/czgl/getAdd}">新增测站</a>
                            </span>
                            </form>



                        </header>
                        <div class="panel-body">
                            <div class="adv-table">

                                <table class="display table table-bordered table-striped" id="dynamic-table">
                                    <thead>
                                    <tr>
                                        <th>#</th>
                                        <th>对象编码</th>
                                        <th>对象名称</th>
                                        <th>测站编码</th>
                                        <th>测站名称</th>
                                        <th>测站类型</th>
                                        <th>备注</th>
                                        <th colspan="2" style="text-align: center">操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr class="gradeX" th:each="czxx,stats: ${czxx}">
                                        <td th:text="${stats.count}"></td>
                                        <td>[[${czxx.objCode}]]</td>
                                        <td th:text="${czxx.objName}"></td>
                                        <td th:text="${czxx.staCode}"></td>
                                        <td th:text="${czxx.staName}"></td>
                                        <td th:text="${czxx.staType}"></td>
                                        <td th:text="${czxx.remark}"></td>
                                        <td style="text-align: center">
                                            <a  th:href="@{'/czgl/delete/'+${czxx.objName} + '/' + ${czxx.objCode}}" class="btn btn-danger btn-sm btn-delete"  type="button">删除</a>
                                        </td>
                                        <td style="text-align: center">
                                            <a th:href="@{'/czgl/get/'+${czxx.objName} + '/' + ${czxx.objCode}}" class="btn btn-default btn-sm" type="button">修改</a>
                                        </td>
                                    </tr>
                                    </tfoot>
                                </table>
                                <!--            将请求方式转换为delete请求                       -->
                                <form action="" class="hidden_form" method="post">
                                    <input type="hidden" class="hidden-method" name="_method" value="delete">
                                </form>

                            </div>
                        </div>
                    </section>
                </div>
            </div>

            <!--body wrapper end-->

            <!--footer section start-->
            <footer>
                2024 &copy;  by lsm </a>
            </footer>
            <!--footer section end-->


        </div>
        <!-- main content end-->
    </div>
</section>


<div th:replace="common :: #commonscript"></div>
<!--dynamic table-->
<script type="text/javascript" language="javascript" src="js/advanced-datatable/js/jquery.dataTables.js"></script>
<script type="text/javascript" src="js/data-tables/DT_bootstrap.js"></script>
<!--dynamic table initialization -->
<!--<script src="js/dynamic_table_init.js"></script>-->


</body>
</html>